package entity;

/**
 * 用户表的实体类
 */
public class Userinfo {
    private Integer id;
    private String username;    //用户名
    private String gender;      //性别
    private String nickname;    //昵称
    private String autograph;   //个性签名
    private String password;    //密码

    public Userinfo() {
    }

    public Userinfo(Integer id, String username, String gender, String nickname, String autograph, String password) {
        this.id = id;
        this.username = username;
        this.gender = gender;
        this.nickname = nickname;
        this.autograph = autograph;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Userinfo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", gender='" + gender + '\'' +
                ", nickname='" + nickname + '\'' +
                ", autograph='" + autograph + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
